<?php
include "config/koneksi.php";
$jenis=$_GET['jenis'];
switch($jenis){
	case "update":
	//update data
	$kode=$_POST['kode'];
	$nama=$_POST['nama'];
	$kode_urut=$_POST['kode_urut'];
	$kuota=$_POST['kuota'];
	$sql="UPDATE `tb_proli`
			SET 
			  `proli` = '".$nama."',
			  `kode_jurusan` = '".$kode_urut."',
			  `kuota` = '".$kuota."'
			WHERE `kd_proli` = '".$kode."';";
	$qry=mysql_query($sql);
	$url_sukses="index.php?halaman=daftar-proli";
	echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
	break;
}
?>